<template>
  <div>
    <tb-report
      :columns="columns"
      :apiUrl="apiUrl"
    ></tb-report>
  </div>
</template>

<script>
import TbReport from "@/components/tb-report/index.vue";

export default {
  name: "App",
  components: { TbReport },
  data() {
    return {
      title: "首页",
      apiUrl:"/scm/api/v1/scmPurchaseContractHead/list",
      columns: [
        {
          title: "序号",
          fixed: 'left', 
          type: "seq",
          width: 60,
          align: "center",
        },
        {
          title: "采购业务员",
          key: "purchaser",
          field: "purchaser",
          width: 100,
          align: "center",
        },
        {
          title: "需求清单号",
          key: "contractNo",
          field: "contractNo",
          width: 100,
          align: "center",
        },
        {
          title: "状态",
          key: "purchaseStatusLabel",
          field: "purchaseStatusLabel",
          width: 100,
          align: "center",
        },
        {
          title: "项目名称",
          key: "programName",
          field: "programName",
          width: 100,
          align: "center",
        },
        {
          title: "项目编号",
          key: "programNumber",
          field: "programNumber",
          width: 100,
          align: "center",
        },
        {
          title: "类别",
          key: "contractCategory",
          field: "contractCategory",
          width: 100,
          align: "center",
        },
        {
          title: "供应商名称",
          key: "supplier",
          field: "supplier",
          width: 100,
          align: "center",
        },
        {
          title: "采购公司",
          key: "purchaseCorp",
          field: "purchaseCorp",
          width: 100,
          align: "center",
        },
        {
          title: "付款条件",
          key: "paymentCondition",
          field: "paymentCondition",
          width: 100,
          align: "center",
        },
        {
          title: "合同总金额",
          key: "purchaseAmount",
          field: "purchaseAmount",
          width: 100,
          align: "center",
        },
      ],
    };
  },
};
</script>

<style>
</style>
